//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com;

import android.net.Uri;
import android.net.Uri.Builder;

public class NavUri {
    protected Builder mBuilder = new Builder();

    public static NavUri.Schemed scheme(String scheme) {
        final NavUri nav_uri = new NavUri();
        nav_uri.mBuilder.scheme(scheme);
        return new NavUri.Schemed() {
            @Override
            public NavUri host(String host) {
                nav_uri.mBuilder.authority(host);
                return nav_uri;
            }
        };
    }

    public static NavUri host(String host) {
        NavUri nav_uri = new NavUri();
        nav_uri.mBuilder.scheme("http").authority(host);
        return nav_uri;
    }

    public NavUri path(String path) {
        this.mBuilder.path(path);
        return this;
    }

    public NavUri segment(String new_segment) {
        this.mBuilder.appendEncodedPath(new_segment);
        return this;
    }

    public NavUri segment(long new_segment) {
        this.mBuilder.appendEncodedPath(String.valueOf(new_segment));
        return this;
    }

    public NavUri segment(int new_segment) {
        this.mBuilder.appendEncodedPath(String.valueOf(new_segment));
        return this;
    }

    public NavUri param(String key, String value) {
        this.mBuilder.appendQueryParameter(key, value);
        return this;
    }

    public NavUri param(String key, long value) {
        this.mBuilder.appendQueryParameter(key, String.valueOf(value));
        return this;
    }

    public NavUri param(String key, int value) {
        this.mBuilder.appendQueryParameter(key, String.valueOf(value));
        return this;
    }

    public NavUri fragment(String fragment) {
        this.mBuilder.fragment(fragment);
        return this;
    }

    Uri build() {
        return this.mBuilder.build();
    }

    private NavUri() {
    }

    public interface Schemed {
        NavUri host(String var1);
    }
}
